package com.gonsin.i18n.lib.common;

import java.util.Map;

public class TextResult {

    public static final TextResult FAILED = new TextResult(500, "请求出错");
    public static final TextResult LANG_NOT_SET = new TextResult(404, "未设置语言");

    private int state;

    private String message;

    private Map<String, String> data;

    public TextResult(int state, String message) {
        this.state = state;
        this.message = message;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Map<String, String> getData() {
        return data;
    }

    public void setData(Map<String, String> data) {
        this.data = data;
    }
}
